package com.wish.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wish.entity.SysDept;
import com.wish.mapper.SysDeptMapper;
import com.wish.service.ISysDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 部门管理 服务实现类
 * </p>
 *
 * @author 五组
 * @since 2021-03-22
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements ISysDeptService {
    @Resource
    private SysDeptMapper sysDeptMapper;

    @Override
    public List<SysDept> getList() {
        return sysDeptMapper.getList();
    }

    @Override
    public void zdel(Integer id) {
        sysDeptMapper.zdel(id);
    }

    @Override
    public SysDept getOneId(Integer id) {
        return sysDeptMapper.getOneId(id);
    }

    @Override
    public List<SysDept> queryList2(Integer id) {
        return baseMapper.queryList2(id);
    }
}
